package user;

import book.Book;
import operation.IOPeration;

public abstract class user {
    protected String name;
    protected IOPeration[] ioPerations;

    public user(String name) {
        this.name = name;
    }

    public abstract int menu() ;

    public void doOperation(int choice, Book book){
        IOPeration ioPeration = this.ioPerations[choice];
        ioPeration.work(book);
    }

}

